#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int n = 0;
    int i = 0;
    int min = 100;
    int max = 0;
    int m = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        scanf("%d ", &m);
        if (m > max)
        {
            max = m;
        }
        if (m < min)
        {
            min = m;
        }
    }
    printf("d ", max - min);
    return 0;

}



int main()

{

    int arr[10];

    int i = 0;

    int n = 0;

    int p = 0;

    for (i = 0; i < 10; i++)

    {

        scanf("%d", &arr[i]);

        if (arr[i] > 0)

            p++;

        if (arr[i] < 0)

            n++;



    }

    printf("positive:%d\n", p);

    printf("negative:%d\n", n);



    return 0;

}


int main()

{



    int arr[] = { 73,32,99,97,110,32,100,111,32,105,116,33 };

    int i = 0;

    for (i = 0; i < 12; i++)

    {

        printf("%c", arr[i]);

    }



    return 0;

}
int main()

{

    int grade;

    scanf("%d", &grade);

    if (0 <= grade && grade <= 100)

        switch (grade / 10)

        {

        case 10:;

        case 9:printf("A"); break;

        case 8:printf("B"); break;
        case 7:printf("C"); break;
        case 6:printf("D"); break;

        default:printf("E"); break;

        }

    else printf("F");

    return 0;
}

int main()

{

    int a = 0;

    int i = 0;

    int max = 0;

    for (i = 0; i < 4; i++)

    {

        scanf("%d ", &a);

        if (max < a)

        {

            max = a;

        }

    }

    printf("%d\n", max);

    return 0;
}

    int main() {

        int n = 0;

        int t = 0;

        scanf("%d", &n);

        t = n / 12 * 4 + 2;

        printf("%d\n", t);

        return 0;

    }
